﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace NamTrungBS.DataLayer
{
    class KhachHangDao
    {
        private static NamTrungDBDataContext db;

           
        /// <summary>
        /// Lay danh sach khach hang
        /// </summary>
        /// <returns></returns>
        public static List<String> GetAllCustomer()
        {
            try 
            {
                db = new NamTrungDBDataContext();
                return db.KhachHangs.Select(kh=>kh.TenKH).ToList();
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }
    }
}
